package com.SouthernWall_404.Age_Capitalism.common.Network.ClientHandler;

import com.SouthernWall_404.Age_Capitalism.common.API.Info.ClientStoreInfo;
import com.SouthernWall_404.Age_Capitalism.common.Network.S2C.StoreBlockEntityPacket;
import net.minecraftforge.network.NetworkEvent;

import java.util.function.Supplier;

public class StoreBlockEntityHandler {

    public static void handleOpenPacket(StoreBlockEntityPacket msg, Supplier<NetworkEvent.Context> ctx)
    {

        ClientStoreInfo.blockPosMap.put((int)msg.windowId,msg.blockPos);
        ClientStoreInfo.entityMap.put(msg.windowId,msg.blockEntity);

    }

}
